package com.clement.decorator;

/**
 * Created by Clement on 2017/3/28.
 */
public abstract class Decorator extends BasicBottle {

    private BasicBottle bottleBasicFunction;

    public Decorator(BasicBottle bottleBasicFunction) {
        this.bottleBasicFunction = bottleBasicFunction;
    }

    @Override
    String fillMaterial() {
        return bottleBasicFunction.fillMaterial();
    }

    @Override
    String emptyMaterial() {
        return bottleBasicFunction.emptyMaterial();
    }
}
